# coding: utf-8
# @Author : lryself
# @Date : 2020/10/20 15:04
# @Software: PyCharm

from flask import Blueprint, render_template, current_app

view = Blueprint('views', __name__)
# 模板全局函数


def init_views(app):
    app.register_blueprint(view, url_prefix="/")


@view.route('/', endpoint='/')
@view.route('/index', endpoint='index')
def index():
    return render_template('index.html')


@view.route('/favicon.ico')
def get_favicon():
    return current_app.send_static_file('favicon.ico')


from . import user_view, note_view, collect_view, material_view, history_view
